package com.mrd.gtimpframe.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mrd.gtimpframe.entity.TSysJob;
import com.mrd.gtimpframe.repository.TSysJobMapper;
import com.mrd.gtimpframe.service.TSysJobService;

@Service("tSysJobService")
public class TSysJobServiceImpl implements TSysJobService {

  @Autowired
  TSysJobMapper tSysJobMapper;

  @Override
  public int deleteByPrimaryKey(Object id) {
    return tSysJobMapper.deleteByPrimaryKey(id);
  }

  @Override
  public int insert(TSysJob t) {
    return tSysJobMapper.insert(t);
  }

  @Override
  public int insertSelective(TSysJob t) {
    return tSysJobMapper.insertSelective(t);
  }

  @Override
  public TSysJob selectByPrimaryKey(Object id) {
    return tSysJobMapper.selectByPrimaryKey(id);
  }

  @Override
  public int updateByPrimaryKeySelective(TSysJob t) {
    return tSysJobMapper.updateByPrimaryKeySelective(t);
  }

  @Override
  public int updateByPrimaryKey(TSysJob t) {
    return tSysJobMapper.updateByPrimaryKey(t);
  }

  @Override
  public List<TSysJob> queryList(TSysJob tSysJob) {
    return tSysJobMapper.queryList(tSysJob);
  }

  /**
   * 批量删除
   * 
   * @author han
   * @param id
   * @return
   */
  @Override
  public int deleteBatch(Object[] id) {
    return tSysJobMapper.deleteBatch(id);
  }
}
